<HTML>
<HEAD>
<TITLE> New Document </TITLE>
</HEAD>
<BODY>
<SCRIPT LANGUAGE="JavaScript">
<!--
function ShowDialog()
{
    var param = "dialogWidth:400px;dialogHeight:300px;scroll:no;status:no;resizable:no";
    return window.showModalDialog("b.html", GetResult, param);
}

function GetResult(ret)
{
    alert(ret);
    document.getElementById("tbTest").value = ret;
	window.opener.tst();
}

function baby(){
	window.opener.tst();
}

//-->
</SCRIPT>
<input type="button" value="Pop" onclick="ShowDialog();" />
<input type="text" id="tbTest" />

<input type="button" value="test" onclick="baby();" />
</BODY>
</HTML>

 
